﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace MediaAdmin.Application.Infrastructure
{
    public static class StringHelper
    {
        public static string ToEnuString(this IEnumerable<string> list)
        {
            var sb = new StringBuilder();
            foreach (var str in list)
            {
                sb.Append(str);
                sb.Append(", ");
            }

            if (sb.Length > 2)
                sb = sb.Remove(sb.Length - 2, 2);

            return sb.ToString();
        }
    }
}